class HomeBanner {
// 0:"id" -> "1218071246290423808"
// 1:"name" -> "1231321"
// 2:"moduleId" -> "19"
// 3:"jumpType" -> 1
// 4:"params" -> "1218068600770924545"
// 5:"moduleClass" -> ""
// 6:"modulePath" -> "/pages/course/detail"
// 7:"val" -> null
// 8:"coverUrl" -> "http://test.yuzhek
  String id;
  String coverUrl;
  int jumpType;
  String params;
  String modulePath;
  String val;

  HomeBanner({
    this.id,
    this.coverUrl,
    this.jumpType,
    this.params,
    this.modulePath,
    this.val,
  });

  static HomeBanner fromJson(Map<String, dynamic> json) {
    return HomeBanner(
      id: json['id'],
      coverUrl: json['coverUrl'],
      jumpType: json['jumpType'],
      params: json['params'],
      modulePath: json['modulePath'],
      val: json['val'],
    );
  }
}

class HomeCategory {
//   "id" -> null
// 1:"moduleName" -> "新闻分类"
// 2:"moduleClass" -> ""
// 3:"moduleImageUrl" -> "http://test.yuzhekeji.top/15791788910004376--MS40NTY4.jpg"
// 4:"modulePath" -> "/pages/news/news"
// 5:"params" -> "1216646793899675649"
// 6:"isNeedParams" -> 1

  String moduleName;
  String moduleImageUrl;
  String modulePath;
  String params;
  int isNeedParams;

  HomeCategory({
    this.moduleName,
    this.moduleImageUrl,
    this.modulePath,
    this.params,
    this.isNeedParams,
  });

  factory HomeCategory.fromJson(Map<String, dynamic> json) {
    return HomeCategory(
      moduleName: json['moduleName'],
      moduleImageUrl: json['moduleImageUrl'],
      modulePath: json['modulePath'],
      params: json['params'],
      isNeedParams: json['isNeedParams'],
    );
  }
}
